package com.zmn.plat.model.dto;

import com.zmn.plat.model.entity.news.News;

import java.util.List;

/**
 * News用于索引的对象
 *
 * @author nowind
 * @since 2017/10/21 16:18
 */
public class NewsDTO extends News {

    private String categOneName;
    private String categTwoName;
    /**
     * keyword分割后的关键词数组
     */
    private List<String> keywords;


    public String getCategOneName() {
        return categOneName;
    }

    public void setCategOneName(String categOneName) {
        this.categOneName = categOneName;
    }

    public String getCategTwoName() {
        return categTwoName;
    }

    public void setCategTwoName(String categTwoName) {
        this.categTwoName = categTwoName;
    }

    public List<String> getKeywords() {
        return keywords;
    }

    public void setKeywords(List<String> keywords) {
        this.keywords = keywords;
    }

    @Override
    public String toString() {
        return "NewsDTO{" + "categOneName='" + categOneName + '\'' + ", categTwoName='" + categTwoName + '\'' + ", keywords=" + keywords + '}';
    }
}
